package vip.liux.backend.adapter.web;

import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import vip.liux.application.dots.PagedResultDto;
import vip.liux.backend.application.service.pay.PayWalletTransactionService;
import vip.liux.backend.application.service.pay.dto.wallet.PayWalletTransactionDto;
import vip.liux.backend.application.service.pay.dto.wallet.PayWalletTransactionQueryDto;

@RestController
@RequestMapping("/api/pay/wallet/transaction")
public class PayWalletTransactionController {

    @Resource
    private PayWalletTransactionService payWalletTransactionService;

    /**
     * 分页查询会员钱包
     *
     * @param input 查询参数
     * @return 分页结果
     */
    @GetMapping("/page")
    public PagedResultDto<PayWalletTransactionDto> getWalletPage(PayWalletTransactionQueryDto input) {
        return payWalletTransactionService.getWalletTransactionPage(input);
    }

}